package com.jdym.back.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jdym.back.entity.RoleMenu;
import com.jdym.back.mapper.RoleMenuMapper;
import com.jdym.back.service.RoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-10-20
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements RoleMenuService {
    @Autowired
    RoleMenuMapper roleMenuMapper;

    @Override
    public List<RoleMenu> findRoleByMenuId(Integer roleId) {

        return roleMenuMapper.findRoleByMenuId(roleId);
    }
}
